export const getType = (item) => {
  if (item.difficulty == 1) {
    item.difficulty = '简单'
  } else if (item.difficulty == 2) {
    item.difficulty = '一般'
  } else {
    item.difficulty = '困难'
  }

  if (item.questionType == 1) {
    item.questionType = '单选'
  } else if (item.questionType == 2) {
    item.questionType = '多选'
  } else {
    item.questionType = '简答'
  }

  if (item.publishState == 0) {
    item.publishState = '已下架'
  } else if (item.publishState == 1) {
    item.publishState = '已发布'
  } else if (item.publishState == 2) {
    item.publishState = '待发布'
  }

  if (item.chkState == 0) {
    item.chkState = '待审核'
  } else if (item.chkState == 1) {
    item.chkState = '已审核'
  } else {
    item.chkState = '已拒绝'
  }
}
